package com.sinven.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopAttributeCategory entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_attribute_category", catalog = "csf")
public class AttributeCategory implements java.io.Serializable {

    // Fields

    private Integer id;
    private String name;
    private Boolean enabled;

    // Constructors

    /** default constructor */
    public AttributeCategory() {
    }

    /** full constructor */
    public AttributeCategory(String name, Boolean enabled) {
        this.name = name;
        this.enabled = enabled;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "name", nullable = false, length = 60)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "enabled", nullable = false)
    public Boolean getEnabled() {
        return this.enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

}